package org.strongme.modules.project.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.strongme.common.service.CrudService;
import org.strongme.modules.project.dao.FyDao;
import org.strongme.modules.project.entity.Fy;

@Service
@Transactional(readOnly=true)
public class FyService extends CrudService<FyDao, Fy>{
	
	public Integer existData(Fy fy) {
		return super.dao.existData(fy);
	}
	
	public List<Fy> findBySubGxh(Fy fy) {
		return super.dao.findBySubGxh(fy);
	}
	
	public List<Fy> loadFyByGx_GG_Pro_Sub(Fy fy) {
		return dao.loadFyByGx_GG_Pro_Sub(fy);
	}
	
	public Integer deleteByGxhProSub(Fy fy) {
		return dao.deleteByGxhProSub(fy);
	}

	@Transactional(readOnly = false)
	public int batchUpdate(List<Fy> list) {
		return dao.batchUpdate(list);
	}
	
}
